$(document).ready(function(){

	setMinHeight();
	setMinWidth();

	$(window).resize(function(){
		setMinHeight();
		setMinWidth();
	   $("#content-easyui").layout('resize');
	});
	//最小高度建议设置下，目前没有设置
	function setMinHeight(){
		var validHeight = document.documentElement.clientHeight;
		var height = validHeight;
		var browser =  $.browser;
		//加不上!important
		if(browser.version == "6.0"){
			$("#mainContent").css({"height":height+"px"});
		}
		$("#mainContent").css({"min-height":height+"px"});
	}
});

function setMinWidth(){
	var width = document.documentElement.clientWidth;
	if(width>1090){
		$("body").css({"width":width+"px"});
		var contentWidth = width*0.9;
		$("#mainContent").width(contentWidth+"px");
	}else{
		$("body").css({"width":980+"px"});
		$("#mainContent").width(980+"px");
	}
}
